<link href="${rc.getContextPath()}/manage/css/dwzCustomCss/dwz.custom.css?v=${ver}" rel="stylesheet" type="text/css">
<script src="${rc.getContextPath()}/manage/js/dwzCustomJs/dwz.custom.advancedquery.js?v=${ver}" type="text/javascript"></script>
<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
    <input type="hidden" id="advancedStatus" name="advancedStatus" value="${condition.advancedStatus!''}" />
    <div class="pageHeader">
        <div class="searchBar">
            <ul class="searchContent">
                <li><label><@label key="WarehouseCode.C,colon">仓库编号：</@label></label> <input class="look" type="text" name="warehouseCode" value="${condition.warehouseCode!''}" 
                    id="warehouseCodeGrp.warehouseCode"  postField="warehouseCode" suggestFields="warehouseCode,warehouseText" 
                    suggestUrl="${rc.getContextPath()}/manage/warehouse/warehouseSuggest?type=all" lookupGroup="warehouseCodeGrp" 
                    />
                    <a class="btnLook" href="${rc.getContextPath()}/manage/warehouse/warehouseLookUp?type=all" rel="warehouseCodeGrp_dialog" title="<@label key='select.C,WarehouseCode.C'>选择仓库编号</@label>"  lookupGroup="warehouseCodeGrp" ></a>
                </li>
                <li>
                    <label><@label key="WarehouseTypeCode.C,colon">仓库类型：</@label></label> 
                    <input class="look" type="text" name="warehouseTypeCode" value="${condition.warehouseTypeCode!''}" 
                    id="warehouseTypeCodeGrp.warehouseTypeCode"  postField="warehouseTypeCode" suggestFields="warehouseTypeCode,warehouseTypeText" 
                    suggestUrl="${rc.getContextPath()}/manage/warehouseType/warehouseTypeSuggest?type=all" lookupGroup="warehouseTypeCodeGrp" 
                    />
                    <a class="btnLook" href="${rc.getContextPath()}/manage/warehouseType/warehouseTypeLookUp?type=all" rel="toWarehouseTypeCodeGrp_dialog" title="<@label key='select.C,WarehouseTypeCode.C'>选择仓库编号</@label>"  lookupGroup="warehouseTypeCodeGrp" ></a>
                </li>
            </ul>
            <ul class="searchContent">
                <li>
                    <label><@label key='materialCode.C,colon'>物料编号：</@label></label> 
                    <input class="look" type="text" name="materialCode" value="${condition.materialCode!''}" 
                    id="materialLookup.materialCode" type="text" postField="materialCode" suggestFields="materialCode,materialText" 
                    suggestUrl="${rc.getContextPath()}/manage/material/componentSuggest" lookupGroup="materialLookup" 
                    />
                    <a class="btnLook" href="${rc.getContextPath()}/manage/material/componentLookUp?lookupType=radio" rel="materialLookup_dialog" title="<@label key='select.C,materialCode.C'>选择物料</@label>"  lookupGroup="materialLookup" ></a>
                </li>
                <li>
                    <label><@label key="negativeInventoryFlag.C,colon">允许负库存：</@label></label> 
                    <select name="negativeInventoryFlag">
                        <option value=""><@label key="all.C">所有</@label></option>
                        <option value="0"<#if condition.negativeInventoryFlag?? && condition.negativeInventoryFlag == 0> selected="selected"</#if>><@label key="no.C">否</@label></option>
                        <option value="1"<#if condition.negativeInventoryFlag?? && condition.negativeInventoryFlag == 1> selected="selected"</#if>><@label key="yes.C">是</@label></option>
                    </select>
                </li>
                <li class="query">
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit"><@label key="query.B">查询</@label></button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </div>
</form>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
          <@buttonRight menuCode="excel_export" labelKey="add.B" defalutName="导出excel">
              <li><a class="export" href="${rc.getContextPath()}/manage/inOutBook/exportInventoryQueryToExcel" target="multiExport" tableId="iTable" targetType="navTab" title="<@label key='confirmexportToExcel.M'>确定要导出这些记录吗?</@label>"><span><@label key='exportToExcel.D'>导出EXCEL</@label></span></a></li>
            </@buttonRight>
        </ul>
    </div>
    <table id="iTable" class="table" width="100%" layoutH="165" style="overflow:scroll;">
        <thead>
            <tr>
                <th width="32"><@label key="serialNumber.C">序号</@label></th>
                <th width="100" field="warehouseCode" orderField="warehouseCode"<#if (page.orderField?? && page.orderField == 'warehouseCode')>class="${page.orderDirection!''}"</#if>><@label key="WarehouseCode.C">入库仓库编号</@label></th>
                <th width="100" field="warehouseText" orderField="warehouseText"<#if (page.orderField?? && page.orderField == 'warehouseText')>class="${page.orderDirection!''}"</#if>><@label key="WarehouseText.C"></@label></th>
                <th width="100" field="warehouseTypeCode" orderField="warehouseTypeCode"<#if (page.orderField?? && page.orderField == 'warehouseTypeCode')>class="${page.orderDirection!''}"</#if>><@label key="WarehouseTypeCode.C">仓库类型编号</@label></th>
                <th width="100" field="warehouseTypeText" orderField="warehouseTypeText"<#if (page.orderField?? && page.orderField == 'warehouseTypeText')>class="${page.orderDirection!''}"</#if>><@label key="WarehouseTypeText.C">出库类型描述</@label></th>
                <th width="100" field="materialCode" orderField="materialCode"<#if (page.orderField?? && page.orderField == 'materialCode')>class="${page.orderDirection!''}"</#if>><@label key="materialCode.C">物料编号</@label></th>
                <th width="100" field="quantity" orderField="quantity"<#if (page.orderField?? && page.orderField == 'quantity')>class="${page.orderDirection!''}"</#if>><@label key="quantity.C">数量</@label></th>
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as inOutBook>
            <tr target="storageLocation_code" rel="${inOutBook.storageLocationCode!''}">
                <td>${page.startRow + inOutBook_index}</td>
                <td>${inOutBook.warehouseCode!''}</td>
                <td>${inOutBook.warehouseText!''}</td>
                <td>${inOutBook.warehouseTypeCode!''}</td>
                <td>${inOutBook.warehouseTypeText!''}</td>
                <td>${inOutBook.materialCode!''}</td>
                <td>${inOutBook.quantity!''}</td>
            </tr>
            </#list> <#else>
            <tr target="inOutBook_id">
                    <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
            </tr>
            </#if><#else>
            <tr target="inOutBook_id">
                    <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
            </tr>
            </#if>
        </tbody>
    </table>
    <#include "/common/panelBar.html">
</div>

<script>
$(function() {
    initAdvancedQuery(navTab.getCurrentPanel());
});
</script>